#include <myheader_c_plus.h>
//用拷贝构造函数和赋值运算实现
using std::cout;
using std::endl;
class Point{
private:
    int _x;
    int _y;
public:
    Point(int x, int y)
    :_x(x)
    ,_y(y)
    {

    }

    operator int(){
        return _x + _y;
    }

};

class Complex{
private:
    int _real;
    int _image;
public:
    Complex(int real, int image)
    :_real(real)
    ,_image(image)
    {

    }

};
int main(int argc, char *argv[])
{
    Point pt(1,3);
    int a = pt;
    cout << a << endl;
    return 0;
}

